package com.baizhi.springboot.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;

import java.util.Date;

public class Log {
    /*`log_id` int(11) NOT NULL AUTO_INCREMENT,
  `admin_id` int(11) DEFAULT NULL,
  `log_date` datetime DEFAULT NULL COMMENT '日志生成的时间',
  `log_content` varchar(255) DEFAULT NULL COMMENT '日志内容',
  `log_type` varchar(255) DEFAULT NULL COMMENT '日志类型：比如删除操作、查询操作...。为了统计分析使用',
  `log_ip` varchar(255) DEFAULT NULL COMMENT '客户端ip地址',
  */
    @Excel(name = "log_id")
    private Integer logId;

    @Excel(name = "admin_id")
    private Integer adminId;

    @Excel(name = "log_date",format = "yyyy-MM-dd")
    private Date logDate;

    @Excel(name = "log_content")
    private String logContent;

    @Excel(name = "log_type")
    private String logType;

    @Excel(name = "log_ip")
    private String logIp;

    @Override
    public String toString() {
        return "Log{" +
                "logId=" + logId +
                ", adminId=" + adminId +
                ", logDate=" + logDate +
                ", logContent='" + logContent + '\'' +
                ", logType='" + logType + '\'' +
                ", logIp='" + logIp + '\'' +
                '}';
    }

    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public Date getLogDate() {
        return logDate;
    }

    public void setLogDate(Date logDate) {
        this.logDate = logDate;
    }

    public String getLogContent() {
        return logContent;
    }

    public void setLogContent(String logContent) {
        this.logContent = logContent;
    }

    public String getLogType() {
        return logType;
    }

    public void setLogType(String logType) {
        this.logType = logType;
    }

    public String getLogIp() {
        return logIp;
    }

    public void setLogIp(String logIp) {
        this.logIp = logIp;
    }

    public Log(Integer logId, Integer adminId, Date logDate, String logContent, String logType, String logIp) {
        this.logId = logId;
        this.adminId = adminId;
        this.logDate = logDate;
        this.logContent = logContent;
        this.logType = logType;
        this.logIp = logIp;
    }

    public Log() {
    }
}
